package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.zhounianturntable.ZhouNianTurntableConfig;
import com.yanqu.road.entity.activity.zhounianturntable.ZhouNianTurntableData;
import com.yanqu.road.entity.activity.zhounianturntable.ZhouNianTurntableRecord;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class ZhouNianTurntableBusiness {

    public static Map<Integer, ZhouNianTurntableConfig> getZhouNianTurntableConfigMap(Integer activityId) {
        return DaoHelper.getZhouNianTurntableConfigDaoImpl().getZhouNianTurntableConfigMap(activityId);
    }

    public static ZhouNianTurntableData getZhouNianTurntableData(int activityId, long userId) {
        return DaoHelper.getZhouNianTurntableDataDaoImpl().getZhouNianTurntableData(activityId, userId);
    }

    public static boolean addZhouNianTurntableData(ZhouNianTurntableData zhouNianTurntableData) {
        return DaoHelper.getZhouNianTurntableDataDaoImpl().add(zhouNianTurntableData);
    }

    public static boolean updateZhouNianTurntableData(ZhouNianTurntableData zhouNianTurntableData) {
        return DaoHelper.getZhouNianTurntableDataDaoImpl().update(zhouNianTurntableData);
    }


    public static List<ZhouNianTurntableRecord> getZhouNianTurntableRecordList(int activityId, int maxCount) {
        return DaoHelper.getZhouNianTurntableRecordDaoImpl().getZhouNianTurntableRecordList(activityId, maxCount);
    }

    public static boolean addZhouNianTurntableRecord(ZhouNianTurntableRecord zhouNianTurntableRecord) {
        return DaoHelper.getZhouNianTurntableRecordDaoImpl().add(zhouNianTurntableRecord);
    }

    public static boolean updateZhouNianTurntableRecord(ZhouNianTurntableRecord zhouNianTurntableRecord) {
        return DaoHelper.getZhouNianTurntableRecordDaoImpl().update(zhouNianTurntableRecord);
    }

}
